package com.rui.study.commons.study.entity;

import lombok.Getter;
import lombok.Setter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

@Getter
@Setter
public class Manager extends Employee {

    private static final Logger LOGGER = LoggerFactory.getLogger(Manager.class);


    /**
     * 下属
     */
    private List<Employee> subordinates;

    public Manager(String employeeId, String name, int age, Gender gender, List<Employee> subordinates) {
        super(employeeId, name, age, gender);
        this.subordinates = subordinates;
    }

    @Override
    public void work() {
        LOGGER.info("{} is working...", this.getName());
    }
}
